﻿using System.ComponentModel.DataAnnotations;

namespace Models
{
    public class Category
    {
        [Required(ErrorMessage = "Required field Name")]
        [MinLength(3)]
        [MaxLength(50)]
        public string Name { set; get; }
        [Key]
        public int Id { set; get; }
        [Required(ErrorMessage = "Required field Description")]
        [MinLength(10)]
        public string Description { set; get; }
    }
}